﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Add.aspx.cs" Inherits="WinnerCMS.WebUI.Admin.Field.Add" %>

<!doctype html>
<html>
<head runat="server">
    <title>添加字段</title>
    <meta charset="utf-8">
    <meta content="no-cache" http-equiv="Pragma" />
    <%: Scripts.Render("~/Scripts/AdminBase") %>
    

    <%: Styles.Render("~/Content/Bootstrap/css") %>

    

    <style type="text/css">
        .RowTitle
        {
            width: 200px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table cellspacing="0" cellpadding="4" width="100%" border="0" id="NavigationPath">
                <tr>
                    <td style="width: auto"><asp:Label ID="lblPath" runat="server"></asp:Label>
                    </td>
                    <td style="width: auto">
                        <a href="Add.aspx?ModelId=<%= Request["ModelId"] %>">添加字段</a>
                    </td>
                </tr>
            </table>
            <table id="Tab0" class="TabelGrid" style="width: 100%">
                <tr>
                    <td class="RowTitle">
                        字段名称：<br />
                    </td>
                    <td>
                        <asp:TextBox ID="txtFieldName" runat="server" Width="250px"></asp:TextBox>
                        (比如：&quot;Title&quot;)&nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        字段类型：
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlFieldType" runat="server">
                            <asp:ListItem Value="nvarchar">字符型(1-4000)</asp:ListItem>
                            <asp:ListItem Value="ntext">大字符型</asp:ListItem>
                            <asp:ListItem Value="int">整型</asp:ListItem>
                            <asp:ListItem Value="float">浮点</asp:ListItem>
                            <asp:ListItem Value="double">双精度</asp:ListItem>
                        </asp:DropDownList>
                        &nbsp;&nbsp; 字段宽度：<asp:TextBox ID="txtMaxFieldLength" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        默认值：
                    </td>
                    <td>
                        <asp:TextBox ID="txtDefaultValue" runat="server" Width="250px" Height="85px" TextMode="MultiLine"></asp:TextBox>
                        (多个值用&quot;回车&quot;格开,对radio,select元素有效)
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        控件类型：
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlControlType" runat="server">
                            <asp:ListItem Value="text" Selected="True">单行文本框(text)</asp:ListItem>
                            <asp:ListItem Value="password">密码框(password)</asp:ListItem>
                            <asp:ListItem Value="select">下拉框(select)</asp:ListItem>
                            <asp:ListItem Value="radio">单选框(radio)</asp:ListItem>
                            <asp:ListItem Value="checkbox">复选框(checkbox)</asp:ListItem>
                            <asp:ListItem Value="textarea">多行文本框(textarea)</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        控件标题：
                    </td>
                    <td>
                        <asp:TextBox ID="txtTitle" runat="server" Width="250px"></asp:TextBox>
                        (比如：&quot;标题&quot;)
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        控件宽度：
                    </td>
                    <td>
                        <asp:TextBox ID="txtWidth" runat="server" Width="95px"></asp:TextBox>
                        &nbsp;(单位：像素)
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        控件附加提示：
                    </td>
                    <td>
                        <asp:TextBox ID="txtTips" runat="server" Width="250px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        是否必填：
                    </td>
                    <td>
                        <asp:RadioButtonList ID="RBL_Indispensable" runat="server" RepeatDirection="Horizontal"
                              CssClass="icheckboxStyle">
                            <asp:ListItem Selected="True" Value="True">必填</asp:ListItem>
                            <asp:ListItem Value="False">不必填</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr style="display: none">
                    <td class="RowTitle">
                        会员中心是否可用：
                    </td>
                    <td>
                        <asp:RadioButtonList ID="RBL_IsShowInMember" runat="server" RepeatDirection="Horizontal"
                              CssClass="icheckboxStyle">
                            <asp:ListItem Selected="True" Value="True">可用</asp:ListItem>
                            <asp:ListItem Value="False">不可用</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        是否启用：
                    </td>
                    <td>
                        <asp:RadioButtonList ID="RBL_Stop" runat="server" RepeatDirection="Horizontal"   CssClass="icheckboxStyle">
                            <asp:ListItem Value="0" Selected="True">启用</asp:ListItem>
                            <asp:ListItem Value="1">停用</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
            </table>
            <div style="text-align: center">
                <br />
                <asp:Button ID="btnOK" runat="server" CssClass="btn btn-default" Text="确定" OnClick="btnOK_Click" /></div>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>